package com.java.Controller;

import com.java.View.StudentView;
import com.java.model.Student;

public class StudentCOntroller {
    private Student model;
    private StudentView view;

    public StudentCOntroller(Student model, StudentView view) {
        this.model = model;
        this.view = view;
    }

    public void setStudentName(String name){
        model.setName(name);
    }
    public String getStudetName(String name){
        return model.getName();
    }

    public void setStudentRollNo(String rollNo){
        model.setRollNo(rollNo);
    }

    public String getStudentRollNo(){
        return model.getRollNo();
    }
    public void updateView(){
        view.printStudentDetails(model.getName(),model.getRollNo());
    }

}
